<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 系统异常 更新
@author WeiXiaoJin
@since 2020-01-26 13:21:36
-->

	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="modifyForm">

									<input type="hidden" name="id" th:value="${bean.id}" />
									
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">accountId </label>
	<div class="col-md-9">
				<input class="form-control" id="accountId" type="text" th:value="${ bean.accountId}" name="accountId" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">账户名称 </label>
	<div class="col-md-9">
				<input class="form-control" id="accountName" type="text" th:value="${ bean.accountName}" name="accountName" placeholder="账户名称">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">客户端 </label>
	<div class="col-md-9">
				<input class="form-control" id="agent" type="text" th:value="${ bean.agent}" name="agent" placeholder="客户端">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">createTime </label>
	<div class="col-md-9">
				<div class="input-group date">
			<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
			<input type="text" class="form-control time-input" 
			       id="createTime-3" name="createTime" 
				   th:value="${ #dates.format(bean.createTime, 'yyyy-MM-dd HH:mm:ss')}" 
			       data-type="datetime" 
			       data-format="yyyy-MM-dd HH:mm:ss" 
			       placeholder="yyyy-MM-dd HH:mm:ss" lay-key="createTime-3">
		</div>
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">服务IP </label>
	<div class="col-md-9">
				<input class="form-control" id="ip" type="text" th:value="${ bean.ip}" name="ip" placeholder="服务IP">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">登陆名 </label>
	<div class="col-md-9">
				<input class="form-control" id="loginName" type="text" th:value="${ bean.loginName}" name="loginName" placeholder="登陆名">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">方法 </label>
	<div class="col-md-9">
				<input class="form-control" id="method" type="text" th:value="${ bean.method}" name="method" placeholder="方法">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">方法描述 </label>
	<div class="col-md-9">
				<input class="form-control" id="methodDesc" type="text" th:value="${ bean.methodDesc}" name="methodDesc" placeholder="方法描述">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">运行时间 </label>
	<div class="col-md-9">
				<input class="form-control" id="methodTime" type="text" th:value="${ bean.methodTime}" name="methodTime" placeholder="运行时间">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">操作员 </label>
	<div class="col-md-9">
				<input class="form-control" id="operation" type="text" th:value="${ bean.operation}" name="operation" placeholder="操作员">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">参数 </label>
	<div class="col-md-9">
				<input class="form-control" id="params" type="text" th:value="${ bean.params}" name="params" placeholder="参数">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">rolePower </label>
	<div class="col-md-9">
				<input class="form-control" id="rolePower" type="text" th:value="${ bean.rolePower}" name="rolePower" placeholder="">
			</div>
</div>
																		<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">请求链接 </label>
	<div class="col-md-9">
				<input class="form-control" id="url" type="text" th:value="${ bean.url}" name="url" placeholder="请求链接">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">记录类型 </label>
	<div class="col-md-9">
				<input class="form-control" id="recordType" type="text" th:value="${ bean.recordType}" name="recordType" placeholder="记录类型">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">应用名称 </label>
	<div class="col-md-9">
				<input class="form-control" id="applicationName" type="text" th:value="${ bean.applicationName}" name="applicationName" placeholder="应用名称">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">服务器名称 </label>
	<div class="col-md-9">
				<input class="form-control" id="hostname" type="text" th:value="${ bean.hostname}" name="hostname" placeholder="服务器名称">
			</div>
</div>
																				</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var modifyForm = $("#modifyForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
accountId: {required:true}
,accountName: {required:true}
,agent: {required:true}
,createTime: {required:true}
,ip: {required:true}
,loginName: {required:true}
,method: {required:true}
,methodDesc: {required:true}
,methodTime: {required:true}
,operation: {required:true}
,params: {required:true}
,rolePower: {required:true}
,url: {required:true}
,recordType: {required:true}
,applicationName: {required:true}
,hostname: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("modifyForm");
			if(result){	
				var modifyUrl = ctx+"base/logger/logSystemException/update" ;
				$.operate.save(modifyUrl , modifyForm.serialize());
			}
	    }
	</script>
</body>
</html>
